#!/usr/bin/env bash

export LANG="en_US.UTF-8"

pathValue=$(cat ./classPath.txt);
#echo ${pathValue}

cd ../../../target/classes/

echo "program start "
echo "current directory:$(pwd)"
echo "result is:"
echo ""

#运行的类名称
className="chapter1.bagqueuestack.example.Queue";

#输入文件1
inputFile_1=;


#重定向输入文件2
inputFile_2=tobe.txt;
echo "inputFile_2 content: "$(cat "${inputFile_2}")""


#输出文件
#outputFile_1=out.txt

#cat ${inputFile_2};


java  -Dfile.encoding=UTF-8 -classpath  "${pathValue}"   ${className} \
    ${inputFile_1}  < \
    ${inputFile_2}  \
#    ${outputFile_1}

exit